package com.chang.xmltx;



import com.chang.xmltx.controller.BookController;

import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.test.context.junit.jupiter.SpringJUnitConfig;


@SpringJUnitConfig(locations = "classpath:newBean.xml")
public class BookTest {

    @Autowired
    private BookController bookController;

    @Test
    public void test(){
        Integer[] bookIds =  {1,2};
        bookController.buyBook(bookIds,1);
    }
}
